package com.hnit.rol.servicebase.feignClient;

import com.hnit.rol.commonutils.Result;
import com.hnit.rol.model.entity.bookInfo.BookInfo;
import com.hnit.rol.model.vo.bookShow.BookShowVo;
import com.hnit.rol.model.vo.order.OrderInfoVo;
import com.hnit.rol.servicebase.feignClient.hystrix.BookClientHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Component
@FeignClient(name = "service-book-show",fallback = BookClientHystrix.class)
public interface BookClient {
    //根据书籍id获取书籍基本信息
    @GetMapping("api/show/remoteGetBookInfo/{bookId}")
    List<OrderInfoVo> remoteGetBookInfo(@PathVariable("bookId") Long bookId);
}
